package com.brayan.webapp.controller;

import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.inject.Inject;

import com.brayan.webapp.model.PubCategory;
import com.brayan.webapp.repository.PubCategoryRepository;

@ManagedBean
@RequestScoped
public class ListPubCategoryController {
	@Inject
	private PubCategoryRepository pubCategoryRepository;
	
	private List<PubCategory> pubCategories;

	public List<PubCategory> getPubCategories() {
		return pubCategoryRepository.getAllActivePubCategories();
	}
	
}
